#pragma once
#include "data_xml_container.hpp"

namespace Data
{
    class Track;
    class Tracks: public XmlContainer
    {
    public:
        Track *add();
        void moveUp(int index);
        void moveDown(int index);
        void remove(int index);
        void setSelectedIndex(int);
        int selectedIndex() const;
        int count() const;
        Track *operator[](int);
        const Track *operator[](int) const;
        void toXml(QDomElement *);
        void fromXml(QDomElement *);
            
    };
}
